﻿using SimpleTicketBooking.Middlewares;

namespace SimpleTicketBooking.Utils.Ext
{
    /// <summary>
    /// JWT middleware Extension
    /// </summary>
    public static class UseJwtMiddlewareExtensions
    {
        /// <summary>
        /// check permissions
        /// </summary>
        /// <param name="builder"></param>
        /// <returns></returns>
        public static IApplicationBuilder UseJwt(this IApplicationBuilder builder)
        {
            return builder.UseMiddleware<UseJwtMiddleware>();
        }
    }
}
